a11y: Rework ownership and lifetime of GtkATContext
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 11 Nov 2020 18:17:41 +0000 (18:17 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 11 Nov 2020 19:45:43 +0000 (19:45 +0000)
commit9052f6dafe15082aa05e25c0267b30f668488e9f
tree90c2b7939488b4ff1dda622aa030bcc0de6db546
parent292576f3129a1bd73d3b5b4ad0e41d70df1c805e
a11y: Rework ownership and lifetime of GtkATContext

Now that GtkATContext is explicitly realized and unrealized, we should
always create an instance at widget initialization time, and drop it
during the widget finalization. This should make it easier to set up the
initial accessible state of a widget during the instance initialization,
as well as reduce the chances of accidental creation of GtkATContext
instances during the destruction sequence.
gtk/gtkatcontext.c
gtk/gtkatcontextprivate.h
gtk/gtkwidget.c